from typing import List


class Solution:
    def rotate(self, nums: List[int], k: int) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        length = len(nums)
        start = (length - k) % length
        nums[:] = nums[start:] + nums[:start]

